<?php 
require('./conn.php');

if(empty($_POST)){
	require('./index.html');
}	else {
	$sql = "insert into msg(name,email,content) values('$_POST[name]','$_POST[email]','$_POST[content]')";
	if(mysqli_query($conn,$sql)){
		echo ' 留言成功';
	} else {
		echo '留言失败';
	}
}








?>